package com.example.springboot.common;

import org.apache.commons.codec.digest.DigestUtils;
import org.springframework.stereotype.Component;


@Component
public class SHA1Util {
    public static String generateSHA1(String password) {
        byte[] message = password.getBytes();
        return DigestUtils.sha1Hex(message).toUpperCase();
    }

}
